<!-- Text Editor for BeOS -->


				KEdit v.0.4.0


2001/07/17

<!--
	////////////////////////////////////////
	/////   About KEdit
	////////////////////////////////////////
-->

* KEdit is a simple, ordinary text editor. I made it to myself because "StyledEdit" ( attached to BeOS package ) is slightly poor to write with, I think. 


Specification
* You can set the font family, size and style, and now auto-indent and word wrap and so on are available. It can be set both every window and preference.
* Find and Replace function is available.
* You can undo and redo, only once.
* KEdit has a lot of keyboard shotcuts.If you learn it, your mouse is to be free !
* You can drag and drop text files from Tracker to the document window.
* It can treat HTML easily.

Caution
* This version of KEdit needs the software below:
	BeOS Release 5 or later

Current plans
* Add the treatment of Polish character code.
	(The author is now considering about it...)

Changes in this version
v0.4.0...
* Added "Add-ons" submenu to 2nd mouse button menu.
* Modified Add-on system.
* Modified Add-on menu specification.
	It accepts symbolic links in add-on directories.
* Fixed samples using Perl.
* Modified "Go To Line..." function. When jumped, scrolling to the selection.
* Fixed the bug of "Go To Line" window associated with the workspaces.
v0.3.9...2001.06.15
* Add "Add-ons" menu.
	You can execute the script files which are written for KEdit.
	The path names of add-on directories are below:
		'/boot/home/config/add-ons/KEdit'
		'(KEdit)/add-ons'
	The temporary file (environment variable : TMPFILE) is stored into your hard drive.
	You process it with your favorite script. (such as sed, perl, ruby and so on.)
	And print the processed text into the standard output.
	ex.	#!/bin/sh
		sed "s/[^<]*>//g" ${TMPFILE}
	This example remove all tags from your selected text.
	(if no selection, whole text will be processed)
* Add the function "Drag and Drop your Bookmark files into your document.
	It will act just like the "Text/URL" menu item.
* Fixed the bug that KEdit crashs when forwarding the e-mail without a subject.
v0.3.8...2001.06.07
* Add the function "Go To Line"
	You can execute it with selecting "Edit/Go To Line..." menu or clicking the line number view (show bottom).
* Add the insertion function from drag & drop of NetPositive text links.
	If you drop the link to KEdit, a URL of the link will be inserted into the text.
	With pressing shift key, the link will be figured into A HREF tag.
* Add the recursive processing for "Email Address" menu.
	It allows you to categorize the person files by folders
* Add the dialog box to choose between opening non-text files and not.
* Fixed the bug the color of HTML tag has been changed back to the basal font in changing the font size.
* Fixed the bug on the end point of the saved text status.
* Now I make this program KEdit on x86 PC only and PPC version is made with crosscompiling.
* Now Copy-right of this program KEdit is based on GNU GPL2.

v0.3.7...
* Fixed the bugs on the function to insert IMG tags.
	Fixed the incorrect size of image. (smaller 1 pixel than original)
	Fixed the discription of the tag name. (IMAGE to IMG)
* Compile the sources on BeOS R5.0.1
* Fixed the bug on "Open Prev./ Next Entry" menu.

v0.3.6...
* Add the function : Auto-insertion of IMG tag with D & D a image file into KEdit window.
* Add a preference item "Browser always makes a new window".
	if the preferred application for HTML file is NetPositive, it will create a new window.
	False is default.
* Add a menu item "Open With BeMail" to "Option / E-mail" menu.
* Now KEdit doesn't use the BQuery class.
* Fixed the bug on "Open Next / Prev. Entry".
* Improved the HTML syntax mode.
* Improved "Figration / Wrap with Return".
* Fixed the bug on handling attribute of mail messages.
* Fixed the bug which the window title of e-mail message.
* Fixed the bug on KString::Contains().
* FIxed the bug on Activation of the preference window.

v0.3.5...
* Fix the bug that Japanese inline input on / beside HTML tags.
* Add "Email Address" and " URL" menu to "Text" menu and 2nd-mouse-button popup menu.
	discribed later.
* Add "Sending Email" function.
	discribed later.
* Add the function to change text and background colors.
	discribed later.
* Now KEdit is compliant to ffm (focus follows mouse)
	"Find" window only. the mouse pointer will move not so smoothly
* Add "File / Open Next / Prev. Entry" menu.
	It will open the entry (file) beside on Tracker windows.
	... such as Be-Mail.
* Refine the command "Option / Open with a Web Browser".
* Change the background color of "Find" and "Preference" window to the system standard color.
* Rename "Tag" menu to "Text" menu.
* Add "Open UserTag file" to "Text" menu.
	displayed only when the "UserTags" file exists.
* Add "Figration" menu to "Text" menu.
	the commands to figrate the text.
	it's buggy now.
* Add "Reset "file type & preferred app"" checkbox to the preference window.
* Change the behavior of function keys (as arrow keys, PageUp/Down keys, and so on).
* Now KEdit can display the incorrect text.
	(for example, the document contains incorrect ESC character)
* Fix the bugs on converting character codes.
* Change the drag & drop (file) funcitons.
	Add auto-detection of character codes and conversion.
* Add "Text Information..." menu to "File" menu.
	Show the information (number of bytes, number of characters, number of lines).
* Fix the bug on opening a new window.
* Fix the bug on "Select previous character" function.
* Refine the behavior on ArgvReceived() function.
* Change the return value of main() to "EXIT_SUCCESS".
* Fix the problem on UNDO function.
v0.3.4...1999/4/8
* Add "add-on" function. you're able to add the functions you want to KEdit.
	Add-on files will be put into "Add-ons" folder which is in same directory with
	 a KEdit application file or '/boot/home/config/add-ons/KEdit'.
	 You can nest the add-on list just as that directory. symlink files available.
	 Note that add-on spec is beta version. It will be changed totally.
* Fix the bug that it never free the 'entry' pointer when opening the files which KEdit can't treat.
* Fix "emacs-like" key assign.
	set "ctrl + v" to "Page down", and "esc - v" to "Page up".
	set "ctrl + k" to "delete to the line end", and delete "esc - ctrl + k" assign.
* Fix "vi-like" key assign.
* Add "close box" to "Preference" and "Find" window.
* Refine "Undo" function.
* Solved the problem related with the endianness.
v0.3.3...1998/12/17
* From this version, it's functional in BeOS R4.
* A little bit change in "UserTags" file.
* Delete the top-right colored rectangle for recognizing input mode.
	I like it, so in the future, it will be back.


Detail of new functions
ABOUT "Add-on" function.
  KEdit adopts the "Add-on" function at v0.3.9 officially.
  The add-on file is written as script file. The script can be written by any language.
  Its action is below:
@ A current selection will be stored into a temporary file.
  The full path name is stored into 'TMPFILE' as the environmental variable.
  'TMPFILE' is equal to 'TMPFILE_PARTIAL'.
@ A whole text of a frontmost window will be stored into another temporary file.
  the full path name is stored into 'TMPFILE_WHOLE' as the environment variable.
@ A current 'edit mode' will be stored into a temporary file.
  the full path name is stored into 'TMPSETTING' as the environment variable.
@ There files will be stored at '/tmp' directroy.

@ If you want, load text from any temporary files.
@ If you want, write into the standard output.
@ If you want, write 'edit mode' into the TMPSETTING file.
  'FUNC=INSERT' : put the output string into the selection.
  'FUNC=REPLACEALL' : replace all string of the frontmost window by the output string.
  'FUNC=NOTOUCH' : do nothing for the frontmost window.


Known problems
* When in HTML mode, Japanese input will be incorrect.
* The pop-up menu called by 2nd button click has keyboard shotcut now.
	It will be fixed soon.


Functions in the Future
* Search with Regular expressions.
* Can customize "Tag" menu.
* Can customize the key assign.
* Add "Add-on" function.
* Can use in Scripting.


How to use KEdit
* The first thing you have to do for KEdit is installing "InlineTextView".
* Open file with Open panel or Drag & Drop.
* Push "shift + space" key or "command (alt) key + space" key to toggle Japanese input mode.
* Shortcut keys and UNDO are available in "Find" window.
* Drag and drop text files to the document window, the text of them are pasted into it.
	When holding down the option key, file names are to be pasted into.
* If you drag texts with holding down the option key, the text will be duplicated.
* Choose keyboard shortcut assign from "KEdit Original", "Emacs-like" and "vi-like" in the preference window. (You have to restart KEdit application.)
* When HTML files ( whose suffix is ".html" and / or whose file type is "text/html" ) are opened, automatically the mode will be "HTML Color Syntax Mode". 

* If you want to open any kind of file, please press the command key.
* if you hold down the command key in drag and drop, the relative path will be written into.

* Now KEdit supports some character codes and return codes.
	Supported character codes...
		UTF-8 ( or ASCII ), JIS ( or ISO 2022-JP ) , Shift JIS, EUC
	And return codes...
		LF, CR, CR-LF
	The codes are able to converted each other.


<!--
	////////////////////////////////////////
	///// Keyboard shortcuts.
	////////////////////////////////////////
-->

			* cmd 	... command key ( = alt key)
			* opt		... option key
			* ctrl		... control key
			* shift	... shift key
	
<!--	Common shortcuts   //////////////////////////////////////// -->

		cmd + 
			up arrow		...Move to top of the text
			down arror	...Move to bottom of the text
			left arror		...Move to top of the line.
			right arror		...Move to bottom of the line
			Space		...Toggle Japanese input mode
			"L"			...Select current line(s)
	
<!--	KEdit Original    ////////////////////////////////////////-->
		
		ctrl +
			"A"	...Move to top of the line.
			"S"	...Move to left
			"D"	...Move to right
			"F"	...Move to bottom of the line
		
			"E"	...Move to the upper line
			"X	...Move to the lower line
		
			"R"	...PageUp
			"C"	...PageDown
		
			"H"	...Delete a left character ( = delete )
			"G"	...Delete a right character ( = ctrl + delete )
			"Y"	...Delete current line(s)
		
			"I"	...Insert tab
			"M"	...Insert return.
			
			"U"	...Set case of selection to Upper.
			"L"	...Set case of selection to Lower.
		
		ctrl + "Q"
		  & ctrl + 
		  	"R"...	Move to top of the text
		  	"C"...	Move to bottom of the text
		
		ctrl + shift +
			"A"	...Select to top of the line
			"S"	...Select to left
			"D"	...Select to right
			"F"	...Select to bottom of the line
	
	
<!--	Emacs-like    //////////////////////////////////////// -->
		
		ctrl +
			"P"	...Move to the upper line
			"N"	...Move to the lower line
			"B"	...Move to left
			"F"	...Move to right
			
			"A"	...Move to line top
			"E"	...Move to line bottom
		
			"R"	...Move to top of the text
			"C"	...Move to bottom of the text
			
			"V"	...Page Down
		
			"H"	...Delete a left character ( = delete )
			"D"	...Delete a right character ( = ctrl + delete )
			
			"K"	...Delete to top of line
		
			"I"	...Insert tab
			"M"	...Insert return
			
			"W"	...Cut string
			"Y"	...Paste string
		
		ctrl + "X" &
			ctrl + "S"	...Save Document.
		
		esc +  (once push esc key, free it, and then push some key. )
			"D"...Delete a word
			ctrl + "K"...Delete to bottom of line
			
			"W"	...Copy string
			
			"V"	...PageUp
			
			"U"	...Set case of current word to Upper
			"L"	...Set case of current word to Lower
	
<!--	vi - like    //////////////////////////////////////// -->
		
		ctrl +
			"K"	...Move to the upper line
			"J"	...Move to the lower line
			"H"	...Move to left
			"L"	...Move to right
			
			"X"	...Delete a left character ( = delete )
			
			"U"	...Undo / Redo
			
			( very simple functions only.
				If you want more functions,
				please tell me it by e-mail. )
				
	
<!--	in "Find" window    //////////////////////////////////////// -->
	
		cmd +
			"I"	...Toggle "Ignore Case" check box.
			"S"	...Push "Set" button.
			"R"	...Push "Replace All" button.
			"W"	...Push "Cancel" button.
			"Z"	...Undo and Redo function.
	
<!--	in "Do you save?" window    //////////////////////////////////////// -->
	
		esc	...Push "Cancel" button.
		"D"	...Push "Don't Save" button.
	



<!--
	////////////////////////////////////////
	/////  misc.
	////////////////////////////////////////
-->


Registration

A. Registration
    Copyright (C) 1997 Karino, Masatsugu

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

B. Others
* This software "KEdit" is a freeware.
* You distribute it freely but if you introduce it in a commercial media, please make me know it.
* All rights are reserved. 
* Use it at your own risk.
* Please send me a mail to let me know the bugs and the reports.

											<!--    

Author
	Karino, Masatsugu
		karino@m.ehime-u.ac.jp

WWW Support
	http://www.m.ehime-u.ac.jp/~karino/be/

											-->

Release Note
* 0.0.1~0.0.2...pre release version
* 0.0.3...1997/10/20...the first release.
* 0.0.4...1997/10/22...Add Replace All
* 0.0.5...1997/10/24...Add tab-width, improve the Replace All.
* 0.0.6...1997/10/25...Improvement of "Replace All" function.
* 0.0.7...1997/10/26...
	File dragging to the window.
	Stop create untitled document when lounched with drag & drop.
* 0.0.8...1997/10/27...
	Duplicate text when you drag and drop it with holding option key.
	Store settings in each document.
* 0.0.9...1997/10/28...
	Add "Emacs-like" keyboard shortcut.
	Add some shortcut keys.
* 0.1.0...1997/10/30...
	Add some shortcut keys.
	Add "Tab Width" menu to "Font" menu.
	Mark each menu item ( font, size, width and so on)
	Add "Close" menu to "File" menu.
* 0.1.1...1997/10/31...
	Fixed bugs in Search Functions.
* 0.1.2...1997/11/02...
	Add some shortcut keys to "Emacs-like"
* 0.1.3...1997/11/08...
	Add "vi - like" shortcut key set.
* 0.1.4...1997/11/11...
	Can launch KEdit with double-clicking a document file
	Add some shortcut keys in the "Find" window.
* 0.1.5...1997/11/14...
	Fixed bugs in Search Functions.
* 0.1.6...1997/11/21...
	Fixed some bugs.
* 0.1.7...1997/11/27...
	Add "Auto-Converter for Return Codes" when drag-and-drop text files into the window.
	Add HTML color syntax mode.
* 0.1.8...1997/12/01
	Improvement in HTML functions.
	Fixed some bugs.
* 0.1.9...1997/12/05
	Fixed some bugs when closing windows.
	Change the treatment of document files.
		Files are closed when they are edited.
	Add HTML tags.
	etc.
* 0.2.0...1997/12/28
	Refine the HTML color syntax mode.
* 0.2.1...1997/12/29
	Show current input mode on the menu bar
	Fixed a bug
* 0.2.2...1997/12/29
	Refined HTML mode and make it speedy
	Saving a document file in HTML mode, KEdit make its file type to  "text/html"
	Fixed some bugs in HTML mode
	Make enabled to undo / redo to insert tags
* 0.2.3...1998/01/21
	Fixed bugs in "Font" menu.
	Changed the action of opening windows.
	Add the window name to the string on the dialog window "Do you like to save it?"
	Made to be able to open only text files.
	Fixed bugs in "Replace All".
	Add the coloring of comments.
* 0.2.4...1998/01/30
	Fixed a bug of RAM treatment.
	Fixed menu strings.
	Show its character code and the return code.
	Add the function to insert the relative path of the dragged file.
* 0.2.5...1998/01/31
	Supported multiple character codes and return codes.
	Fixed the line numbering.
* 0.2.6...1997/03/06
	Fixed bugs in Inline input of the "Find" window.
	Set the font of "Find and Replace" text boxes to the preference's.
	When "Save As...", save text styles.
	In the search window, now "cmd + return" inserts return and "cmd + tab" inserts tab.
	Add a menu "Open with a Web Browser" to "Option" menu.
	Fixed bugs in the search function.
	Changed and add some shortcut keys.
* 0.2.7...1998/04/21
	Rewrite and refine all source code.
	Add functions to 2nd and 3rd mouse buttons.
	Make possible to save a window position.
	Make possible to select to use 'HTML auto-detection' function.
	Make possible to make new file or open a file with Terminal.
	Add a small dot which shows whether the document was modified or not.
* 0.2.8...1998/04/22
	Fixed the bug that KEdit can't save the file when the "Save As..." command is sent.
	Fixed the bug that KEdit save the documents with wrong file length.
* 0.2.9...1998/04/23
	Fixed many bugs in the inline input function.
	Make the caret position when opening file to the top of the text.
* 0.3.0...1998/06/07
	Fixed the bug in "Chack Syntax" function.
	Fixed the bug in the "Find" window using in multi-workspaces.
	Fixed the bug in the "character code" pop-up menu.
* 0.3.1...1998/07/18
	Optimized for InlineTextView_R3
	Fixed the bug in "Drag and Drop" function of the text.
* 0.3.2...1998/08/13
	Add "UserTag" function. see the "UserTags.sample" file.
	Fixed the bugs associated with the "inline" function.
	Fixed some other bugs.


















